package smartcode;

import app.auto.AndroidInstance;
import app.auto.runner.base.intf.FunCallback;

public abstract class Invoke extends AndroidInstance {
    private FunCallback funccallback;


    @Override
    public AndroidInstance use(Object mp, Object... p) {
        return null;
    }

    public abstract Invoke send(Object map);

    private void setResult(String rsult) {
        if(funccallback!=null){
            funccallback.onCallback(rsult, this);
        }
    }


    public Invoke setFunCallback(FunCallback funCallback) {
        this.funccallback = funCallback;
        return this;
    }
}
